package de.sabram.upb.specs.eee_tools.wizards;

import java.io.IOException;
import java.io.InputStream;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.dialogs.WizardNewFileCreationPage;

import de.sabram.upb.specs.eee_tools.Activator;

public class WizardLidoFileCreationPage extends WizardNewFileCreationPage {

	public WizardLidoFileCreationPage(IStructuredSelection selection) 
	{
		super("e³ Lido File Wizard", selection);
		setTitle("Lido File Wizard");
		setDescription("Create a lido File");
		setFileExtension("lido");
	}
	@Override
	protected InputStream getInitialContents() {
		String templateFilePath = "src/de/sabram/upb/specs/eee_tools/templates/lido-template.txt";
		
		InputStream inputStream = null;
		try
		{
			inputStream = Activator.getDefault().getBundle().getEntry(templateFilePath).openStream();
		}
		catch(IOException e){
			//null
		}
		return inputStream;
	}

}
